<?php
/**
* 用户组
* @author zlj <389843954@qq.com>
*/
namespace app\common\model;
use think\Model;
class Group extends Model
{

	/**
	 * 获取列表
	 * @param  [array] $where    [条件]
	 * @return [type]            [description]
	 */
	public function gList($where=[]){
      	
        if ($where){
            $result = self::where($where);
        }else{
        	$result = self::select();
        }

        return $result;
	}

	/**
	 * 查找组信息
	 * @param [string] $gid [组id]
	 * @return [type] [description]
	 */
	public function gFind($gid){
		$result = self::where('id',$gid)->find();
		
		return $result;
	}

}
